package com.yalu.entity.data; 

import java.io.Serializable;

import javax.persistence.Embeddable;

@Embeddable
public class TaskcostKey implements Serializable{
	
	@Override
	public int hashCode() {
		return store_name == null ? System.identityHashCode(this) : store_name.hashCode();
	}

	private static final long serialVersionUID = 8289111092801521401L;
	private int	store_id;
	private String store_name;
	private String data_date;
	
	@Override
	public boolean equals(Object obj) {
		final TaskcostKey other = (TaskcostKey) obj;
		if (store_id == other.getStore_id()) {
			if(store_name!=null&&data_date!=null&&other.getStore_name()!=null&&other.getData_date()!=null){
				if(store_name.equals(other.getStore_name())&&data_date.equals(other.getData_date())){
					return true;
				}
			}
		}
		return false;
	}

	public int getStore_id() {
		return store_id;
	}

	public void setStore_id(int store_id) {
		this.store_id = store_id;
	}

	public String getStore_name() {
		return store_name;
	}

	public void setStore_name(String store_name) {
		this.store_name = store_name;
	}

	public String getData_date() {
		return data_date;
	}

	public void setData_date(String data_date) {
		this.data_date = data_date;
	}
	
}
 